

import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:psi/generated/assets.dart';
import 'package:psi/routes/app_pages.dart';

class MeMenu {
  String imageName;
  String? title;
  String? subTitle;
  VoidCallback? onTap;
  int type; // 0 有详情 1 直接展示

  MeMenu({required this.imageName, this.title, this.onTap,this.type = 0});
}

class MeState {
  List<MeMenu> menus = [
    MeMenu(
        imageName: R.mePassword,
        title: "修改密码",
        type: 1,
      onTap: () {
          Get.toNamed(PageNames.changePassword);
      }
    ),
    MeMenu(
      imageName: R.meVersion,
      title: "版本号",
      type: 0
    ),
    // MeMenu(
    //     imageName: R.meSetting,
    //     title: "设置",
    //     type: 1
    // ),
  ].obs;

  MeState() {}
}
